<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <cpn :cinfo="info"></cpn>
</div>
<template id="cpn">
  <h2>{{cinfo}}</h2>
</template>
<script src="../vue.js"></script>
<script>
  const cpn={
    template:`#cpn`,
    props:{
      cinfo:{
        type:Object,
        default(){
          return {}
        }
      }

    }
  }

  const app = new Vue({
    el: '#app',
    data: {
      info:{
        name:'why',
        age:18,
        height:1.88
      }
    },
    components:{
      cpn
    }
  })
</script>
</body>
</html>
